

#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  cin >> n;
  int Lei1 = INT_MAX, lei2 = INT_MIN;

  for (int i = 1; i <= n; i++)
    int num;
  cin >> num;

  if (lei1 > num) {
    lei1 = num;
  }
  if (lei2 < num)
    lei2 = num;
}

return 0;
}